package bintree.newcoder;

import java.util.HashSet;
import java.util.Scanner;

public class 下厨房 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        HashSet<String> set = new HashSet<String>();
        while (scanner.hasNext()){
            String str = scanner.next();
            set.add(str);
        }
        System.out.println(set.size());
    }
}
